package top.lvkun.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import top.lvkun.org.domain.Shop;
import top.lvkun.org.domain.SystemDictionaryDetail;
import top.lvkun.user.domain.User;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 宠物
 */
@Data
public class Pet {
    //宠物id
    private Long id;
    //宠物名称
    private String name;
    //销售价格
    private BigDecimal saleprice;
    //成本价
    private BigDecimal costprice;
    //图片资源
    private String resources;
    //上架状态  1表示下架  0表示上架
    private Integer state;
    //宠物类型id
    private Long type_id;
    //宠物类型
    private PetType petType;
    //宠物毛发颜色
    private SystemDictionaryDetail coatColor;
    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    //所属店铺
    private Long shop_id;
    private Shop shop;

    //宠物的购买者
    private Long user_id;
    private User user;

    //宠物详情
    private PetDetail petDetail;

    //领养信息id
    private Long adopt_id;
}
